package edu.vo.ID;

import java.io.Serializable;
import java.util.Objects;

public class ScoreRatioId implements Serializable {
    private Integer course;
    private String itemName;

    public ScoreRatioId() {}

    public ScoreRatioId(Integer course, String itemName) {
        this.course = course;
        this.itemName = itemName;
    }

    public Integer getCourse() {
        return course;
    }

    public void setCourse(Integer course) {
        this.course = course;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ScoreRatioId that = (ScoreRatioId) o;
        return Objects.equals(course, that.course) &&
                Objects.equals(itemName, that.itemName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(course, itemName);
    }
}